package com.reflect;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-12-12
 * Time: 9:10
 */

interface A{}
interface B{}

class Person{}
public class Student extends Person implements A,B{
    private String name;
    private int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    private void Sleep(){
        System.out.println("sleep()...");
    }

    private void Sleep(int hour){
        System.out.println("sleep()..."+hour);
    }
}
